package com.skt.common_hr.biztrip_sac.model.vo
{
	import com.wcl.utils.DateUtil;
	import com.wcl.utils.NumberUtil;

	[Bindable]
	public class MemberDetailCostVO
	{
		public var PERNR:String;		//	사원 번호
		public var SEQNO:String;		//	순번
		public var CARDNO:String;		//	카드번호
		public var APNO:String;			//	승인번호
		public var RECGBN:String;		//	증빙구분
		public var RECTXT:String;		//
		public var RDATE:Date;			//	증빙일자
		public var MERNM:String;		//	가맹정명
		public var AMT:Number = 0;			//	금액
		public var WAERS:String;		//	통화 키
		public var COSTGBN:String;		//	비용구분
		public var COSTEXT:String		//
		public var BIGO:String;			//	비고
		public var RBELNR:String;		//	회계 전표 번호
		public var RBTEXT:String;		//	전표오류메세지
		public var USED_NO:String;		//	법인카드사용번호

		public function clone():MemberDetailCostVO
		{
			var target:MemberDetailCostVO = new MemberDetailCostVO();
			target.PERNR 	= this.PERNR;
			target.SEQNO 	= this.SEQNO;
			target.CARDNO 	= this.CARDNO;
			target.APNO 	= this.APNO;
			target.RECGBN 	= this.RECGBN;
			target.RECTXT 	= this.RECTXT;
			target.RDATE 	= new Date(this.RDATE);
			target.MERNM 	= this.MERNM;
			target.AMT 		= this.AMT;
			target.WAERS 	= this.WAERS;
			target.COSTGBN 	= this.COSTGBN;
			target.COSTEXT 	= this.COSTEXT;
			target.BIGO 	= this.BIGO;
			target.RBELNR 	= this.RBELNR;
			target.RBTEXT 	= this.RBTEXT;
			target.USED_NO 	= this.USED_NO;
			
			return target;
		}

		public function get RDATE_F():String
		{
			return DateUtil.toDefaultString(RDATE);
		}
		public function set RDATE_F(s:String):void
		{

		}

		public function get AMT_F():String
		{
			return NumberUtil.NumberFormat(AMT);
		}

	}
}